/**
 * Created by Scott Tiger.
 * User: tomaszsocha
 * Date: 2010-04-09
 * Time: 17:45:59
 */
public class Armor extends Item {

    public String getIngredients(){
        Koszulka skladnik1 = (Koszulka) getSkladnik1();
        Koszulka skladnik2 = (Koszulka) getSkladnik2();
        String opis = (getPrefix()==null?"":getPrefix()+" ") + (getName()) + (getSufix()==null?"":getSufix()+" ");
        if (skladnik1 != null){
            return "("+skladnik1.getIngredients() +"+"+skladnik2.getIngredients()+"=>"+opis;
        }          else  {
            return "("+opis+")";
        }
    }
}
